const Layout = () => import('@/layout/index.vue')
export default {
  path: '/system',
  name: 'System',
  meta: {title: '系统设置', icon: 'Tools'},
  component: Layout,
  children: [
    {
      path: '/system/config',
      name: 'systemConfig',
      component: () => import('@/views/system/systemConfig/index.vue'),
      meta: {title: '系统配置', role: ['system_index']}
    },
    {
      path: '/system/versionConfig',
      name: 'systemVersionConfig',
      component: () => import('@/views/system/versionConfig/index.vue'),
      meta: {title: '版本管理', role: ['version_index']}
    },
    {
      path: '/system/blackword',
      name: '/systemBlackWord',
      component: () => import('@/views/system/blackWord/index.vue'),
      meta: {title: '黑名单语言', role: ['blackList_word']}
    },
    {
      path: '/system/adminLogs',
      name: 'systemAdminLogs',
      component: () => import('@/views/system/adminLogs/index.vue'),
      meta: {title: '操作日志', role: ['user_logs']}
    },
    {
      path: '/system/GeneratePage',
      name: 'systemGeneratePage',
      component: () => import('@/views/system/GeneratePage.vue'),
      meta: {title: '生成页面', role: ['system_generateHtml']}
    },
    {
      path: "/system/IPDeny",
      name: "IPDeny",
      component: () => import("@/views/system/systemIpDeny/index.vue"),
      meta: {title: "IP 限制", role: ["system_IPDeny"]},
    },
    {
      path: "/system/ipOptList",
      name: "ipOptList",
      component: () => import("@/views/system/ipOptList/index.vue"),
      meta: {title: "IP 记录", role: ["system_ipOptList"]},
    },
    {
      path: "/system/QuickQuery",
      name: "QuickQuery",
      component: () => import("@/views/system/systemQuickQuery/configForm.vue"),
      meta: {title: "快捷查询", role: ["system_QuickQuery"]},
    },
    {
      path: "/system/QuickAdd",
      name: "QuickAdd",
      component: () => import("@/views/system/systemQuickAdd/index.vue"),
      meta: {title: "快捷添加", role: ["system_QuickAdd"]},
    },
    {
      path: '/system/gameRules',
      name: 'gameRules',
      meta: {title: '游戏规则设置'},
      children: [
        {
          path: '/system/xp',
          name: 'xp',
          component: () => import('@/views/system/systemConfig/xp.vue'),
          meta: {title: '小盘游戏规则'},
        },
        {
          path: '/system/dp',
          name: 'dp',
          component: () => import('@/views/system/systemConfig/dp.vue'),
          meta: {title: '大盘游戏规则'},
        },
        {
          path: '/system/lz',
          name: 'lz',
          component: () => import('@/views/system/systemConfig/lz.vue'),
          meta: {title: '擂主游戏规则'},
        },
        {
          path: '/system/wl',
          name: 'wl',
          component: () => import('@/views/system/systemConfig/wl.vue'),
          meta: {title: '五连游戏规则'},
        },
        {
          path: '/system/bl',
          name: 'bl',
          component: () => import('@/views/system/systemConfig/bl.vue'),
          meta: {title: '倍率游戏规则'},
        },
      ]
    }
  ],
};
